<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% String vuePartielle = (String)request.getAttribute("vuePartielle"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%
SimpleDateFormat sdf_import = new SimpleDateFormat("yyyy-MM-dd");
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Calendrier</title>
        <script type="text/javascript" src="<%=getServletContext().getContextPath()%>/javascripts/prototype.js"></script>
        <script type="text/javascript" src="<%=getServletContext().getContextPath()%>/javascripts/date.format.js"></script>
        <script type="text/javascript" src="<%=getServletContext().getContextPath()%>/javascripts/calendar.js"></script>
        <script type="text/javascript" src="<%=getServletContext().getContextPath()%>/javascripts/script.js"></script>
        <link rel="stylesheet" type="text/css" href="<%=getServletContext().getContextPath()%>/stylesheets/style.css" />
        <link rel="stylesheet" type="text/css" href="<%=getServletContext().getContextPath()%>/stylesheets/calendar.css" />
    </head>
    <body>
        <div id="gestion">
            <table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;">
                <tr>
                    <td id="ds_calclass"></td>
                </tr>
            </table>
            <ul>
                <li>Ajouter un évènement</li>
            </ul>
        </div>
        <div id="periode">
           <% if(request.getAttribute("dateJour") != null) { %>
           <jsp:include page="/WEB-INF/vues/ChoixPeriode.jsp" flush="true" />
           <% } %>
        </div>
        <div id="calendrier">
            <jsp:include page="<%=vuePartielle%>" flush="true" />
        </div>
        <script type="text/javascript">
            ds_oe = ds_getel('ds_calclass');
            ds_ce = ds_getel('ds_conclass');
            ds_sh(this);
        </script>
    </body>
</html>